const avators = [
    { name: "业务分析师", url: "/src/assets/images/1212.png", idAvator: '1', engFlag: 'Business Analyst' },
    { name: "数据分析师", url: "/src/assets/images/1313.png", idAvator: '2', engFlag: 'Data Analyst' },
    { name: "测试工程师", url: "/src/assets/images/1414.jpg", idAvator: '3', engFlag: 'QA Engineer' },
]

const role = [{ id: '1', name: '业务分析师' }, { id: '2', name: '数据分析师' }, { id: '3', name: '测试工程师' }, { id: '4', name: '结论' }]

const trees = [
    { label: 'LINEITEM', children: [{ name: 'FIELD1' }, { name: 'FIELD1' }, { name: 'FIELD1' }] },
    { label: 'LINEITEM', children: [{ name: 'FIELD1' }, { name: 'FIELD1' }, { name: 'FIELD1' }] },
    { label: 'LINEITEM', children: [{ name: 'FIELD1' }, { name: 'FIELD1' }, { name: 'FIELD1' }] }
]

const removeDuplicatesById = (arr: []) => {
    return arr.filter((item: any, index, self) => {
        return self.findIndex((t: any) => t.ins == item.ins) == index;
    });
}

export { avators, role, trees, removeDuplicatesById }